#!/bin/bash
git add .
if [ ! -n "$1" ]; then
    git commit -s -m `date +%Y-%m-%d`
else 
    git commit -s -m `date +%Y-%m-%d`---$1
fi
git push origin master